package com.woniuxy.mqconsumer.configuration;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description: MessageTransferConfiguration <br>
 * date: 2022/1/13 12:59 上午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */

/**
 * 消息转换器
 */
@Configuration
public class MessageTransferConfiguration {

    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
